package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.SysUserDept;
import org.apache.ibatis.annotations.Param;

/**
 * ???????? ???
 */
public interface FamDeptFamMapper {
    /**
     * ????ID?????????
     * @param famId ??ID
     * @return ??
     */
    public int deleteDeptFamByfamId(Long famId);

    /**
     * ???????????
     *
     * @param ids ???????ID
     * @return ??
     */
    public int deleteUserDept(Long[] ids);

    /**Dept
     * ????ID????????
     *
     * @param deptId ??ID
     * @return ??
     */
    public int countUserDeptByRoleId(Long deptId);

    /**
     * ????????
     *
     * @param userDeptList ??????
     * @return ??
     */
    public int batchUserDept(SysUserDept userDeptList);

    /**
     * ???????????
     *
     * @param userDept ?????????
     * @return ??
     */
    public int deleteUserDeptInfo(SysUserDept userDept);

    /**
     * ??????????
     *
     * @param deptId ??ID
     * @param userIds ?????????ID
     * @return ??
     */
    public int deleteUserDeptInfos(@Param("deptId") Long deptId, @Param("deptIds") Long[] userIds);


}